package com.dp.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.apache.struts2.json.annotations.JSON;

@Entity
@Table(name = "t_tel_device")
public class TTelDevice implements Serializable{
		private static final long serialVersionUID = 1L;
	    @Id
	    @Basic(optional = false)
	    @Column(name = "devicesn")
	    private String devicesn;
	    @Column(name = "telnumber")
	    private String telnumber;
	    @Column(name = "createtime")   
		@Temporal(TemporalType.TIMESTAMP)
		private Date createtime;   
	    @Column(name = "kdnumber")
	    private String kdnumber;
	    @Column(name = "cname")
	    private String cname;
	    @Column(name = "creleation")
	    private String creleation;
	    @Column(name = "cinfo")
	    private String cinfo;
	    @Column(name = "ckeyword")
	    private String ckeyword;
	    @Column(name = "oktime")
	    @Temporal(TemporalType.TIMESTAMP)
		private Date oktime;   
	    @Column(name = "cstatus")
	    private String cstatus;
	    @Column(name = "caddress")
	    private String caddress;
	    @Column(name = "yyt")
	    private String yyt;
	    @Column(name = "cempnumber")
	    private String cempnumber;
	    @Column(name = "cempname")
	    private String cempname;
	    @Column(name = "kdzh")
	    private String kdzh;
	    @Column(name = "banknumber")
	    private String banknumber;
	    @Column(name = "servernumber")
	    private String servernumber;
	    @Column(name = "callcenter")
	    private String callcenter;
	    @Column(name = "callarea")
	    private String callarea;
	    @Column(name = "servertx")
	    private String servertx;
	    @Column(name = "serveraction")
	    private String serveraction;
	    @Column(name = "priceaction")
	    private String priceaction;
	    @Column(name = "productname")
	    private String productname;
	    @Column(name = "pricename")
	    private String pricename;
	    @Column(name = "jx")
	    private String jx;
	    @Column(name = "qqh")
	    private String qqh;
	    @Column(name = "relationnumber")
	    private String relationnumber;
	    @Column(name = "serverarea")
	    private String serverarea;
	    @Column(name = "serverqy")
	    private String serverqy;
	    @Column(name = "xzq")
	    private String xzq;
	    @Column(name = "fzman")
	    private String fzman;
	    @Column(name = "fzdepartment")
	    private String fzdepartment;
	    @Column(name = "validtime")
	    @Temporal(TemporalType.TIMESTAMP)
	    private Date validtime;
	    @Column(name = "notvalidtime")
	    @Temporal(TemporalType.TIMESTAMP)
	    private Date notvalidtime;
	    @Column(name = "groupnote")
	    private String groupnote;
	    @Column(name = "kdsl")
	    private String kdsl;
	    @Column(name = "note")
	    private String note;
	    @Column(name = "user_areaid")
	    private String user_areaid;
	    @Column(name = "user_status")
	    private Integer user_status;
	    @Column(name = "hjbz")
	    private Integer hjbz;
	    @Column(name = "hjtime")
	    @Temporal(TemporalType.TIMESTAMP)
	    private Date hjtime;
	    @Column(name = "user_type")
	    private Integer user_type;
	    //行业
	    @Column(name = "profession")
	    private String profession;
	    //地域
	    @Column(name = "tarea")
	    private String tarea;
	    
	    public TTelDevice(){
	    }
	    public TTelDevice(String devicesn){
	    	this.devicesn=devicesn;
	    }
		public String getDevicesn() {
			return devicesn;
		}
		public void setDevicesn(String devicesn) {
			this.devicesn = devicesn;
		}
		public String getTelnumber() {
			return telnumber;
		}
		public void setTelnumber(String telnumber) {
			this.telnumber = telnumber;
		}
		@JSON(format="yyyy-MM-dd HH:mm:ss")
		public Date getCreatetime() {
			return createtime;
		}
		public void setCreatetime(Date createtime) {
			this.createtime = createtime;
		}
		public String getKdnumber() {
			return kdnumber;
		}
		public void setKdnumber(String kdnumber) {
			this.kdnumber = kdnumber;
		}
		public String getCname() {
			return cname;
		}
		public void setCname(String cname) {
			this.cname = cname;
		}
		public String getCreleation() {
			return creleation;
		}
		public void setCreleation(String creleation) {
			this.creleation = creleation;
		}
		public String getCinfo() {
			return cinfo;
		}
		public void setCinfo(String cinfo) {
			this.cinfo = cinfo;
		}
		public String getCkeyword() {
			return ckeyword;
		}
		public void setCkeyword(String ckeyword) {
			this.ckeyword = ckeyword;
		}
		@JSON(format="yyyy-MM-dd HH:mm:ss")
		public Date getOktime() {
			return oktime;
		}
		public void setOktime(Date oktime) {
			this.oktime = oktime;
		}
		public String getCstatus() {
			return cstatus;
		}
		public void setCstatus(String cstatus) {
			this.cstatus = cstatus;
		}
		public String getCaddress() {
			return caddress;
		}
		public void setCaddress(String caddress) {
			this.caddress = caddress;
		}
		public String getYyt() {
			return yyt;
		}
		public void setYyt(String yyt) {
			this.yyt = yyt;
		}
		public String getCempnumber() {
			return cempnumber;
		}
		public void setCempnumber(String cempnumber) {
			this.cempnumber = cempnumber;
		}
		public String getCempname() {
			return cempname;
		}
		public void setCempname(String cempname) {
			this.cempname = cempname;
		}
		public String getKdzh() {
			return kdzh;
		}
		public void setKdzh(String kdzh) {
			this.kdzh = kdzh;
		}
		public String getBanknumber() {
			return banknumber;
		}
		public void setBanknumber(String banknumber) {
			this.banknumber = banknumber;
		}
		public String getServernumber() {
			return servernumber;
		}
		public void setServernumber(String servernumber) {
			this.servernumber = servernumber;
		}
		public String getCallcenter() {
			return callcenter;
		}
		public void setCallcenter(String callcenter) {
			this.callcenter = callcenter;
		}
		public String getCallarea() {
			return callarea;
		}
		public void setCallarea(String callarea) {
			this.callarea = callarea;
		}
		public String getServertx() {
			return servertx;
		}
		public void setServertx(String servertx) {
			this.servertx = servertx;
		}
		public String getServeraction() {
			return serveraction;
		}
		public void setServeraction(String serveraction) {
			this.serveraction = serveraction;
		}
		public String getPriceaction() {
			return priceaction;
		}
		public void setPriceaction(String priceaction) {
			this.priceaction = priceaction;
		}
		public String getProductname() {
			return productname;
		}
		public void setProductname(String productname) {
			this.productname = productname;
		}
		public String getPricename() {
			return pricename;
		}
		public void setPricename(String pricename) {
			this.pricename = pricename;
		}
		public String getJx() {
			return jx;
		}
		public void setJx(String jx) {
			this.jx = jx;
		}
		public String getQqh() {
			return qqh;
		}
		public void setQqh(String qqh) {
			this.qqh = qqh;
		}
		public String getRelationnumber() {
			return relationnumber;
		}
		public void setRelationnumber(String relationnumber) {
			this.relationnumber = relationnumber;
		}
		public String getServerarea() {
			return serverarea;
		}
		public void setServerarea(String serverarea) {
			this.serverarea = serverarea;
		}
		public String getServerqy() {
			return serverqy;
		}
		public void setServerqy(String serverqy) {
			this.serverqy = serverqy;
		}
		public String getXzq() {
			return xzq;
		}
		public void setXzq(String xzq) {
			this.xzq = xzq;
		}
		public String getFzman() {
			return fzman;
		}
		public void setFzman(String fzman) {
			this.fzman = fzman;
		}
		public String getFzdepartment() {
			return fzdepartment;
		}
		public void setFzdepartment(String fzdepartment) {
			this.fzdepartment = fzdepartment;
		}
		public Date getValidtime() {
			return validtime;
		}
		public void setValidtime(Date validtime) {
			this.validtime = validtime;
		}
		public Date getNotvalidtime() {
			return notvalidtime;
		}
		public void setNotvalidtime(Date notvalidtime) {
			this.notvalidtime = notvalidtime;
		}
		public String getGroupnote() {
			return groupnote;
		}
		public void setGroupnote(String groupnote) {
			this.groupnote = groupnote;
		}
		public String getKdsl() {
			return kdsl;
		}
		public void setKdsl(String kdsl) {
			this.kdsl = kdsl;
		}
		public String getNote() {
			return note;
		}
		public void setNote(String note) {
			this.note = note;
		}
		public String getUser_areaid() {
			return user_areaid;
		}
		public void setUser_areaid(String user_areaid) {
			this.user_areaid = user_areaid;
		}
		public Integer getUser_status() {
			return user_status;
		}
		public void setUser_status(Integer user_status) {
			this.user_status = user_status;
		}
		public Integer getHjbz() {
			return hjbz;
		}
		public void setHjbz(Integer hjbz) {
			this.hjbz = hjbz;
		}
		@JSON(format="yyyy-MM-dd HH:mm:ss")
		public Date getHjtime() {
			return hjtime;
		}
		public void setHjtime(Date hjtime) {
			this.hjtime = hjtime;
		}
		public Integer getUser_type() {
			return user_type;
		}
		public void setUser_type(Integer user_type) {
			this.user_type = user_type;
		}
		
		@Override
	    public int hashCode() {
	        int hash = 0;
	        hash += (devicesn != null ? devicesn.hashCode() : 0);
	        return hash;
	    }
	   
		@Override
	    public boolean equals(Object object) {
	        if (!(object instanceof TTelDevice)) {
	            return false;
	        }
	        TTelDevice other = (TTelDevice) object;
	        if ((this.devicesn == null && other.devicesn != null) || (this.devicesn != null && !this.devicesn.equals(other.devicesn))) {
	            return false;
	        }
	        return true;
	    }

	    @Override
	    public String toString() {
	        return "com.dp.vo.TTelDevice[devicesn=" + devicesn + "]";
	    }
		/**
		 * profession
		 *
		 * @return  the profession
		 * @since   CodingExample Ver(编码范例查看) 1.0
		 */
		
		public String getProfession() {
			return profession;
		}
		/**
		 * @param profession the profession to set
		 */
		public void setProfession(String profession) {
			this.profession = profession;
		}
		/**
		 * tarea
		 *
		 * @return  the tarea
		 * @since   CodingExample Ver(编码范例查看) 1.0
		 */
		
		public String getTarea() {
			return tarea;
		}
		/**
		 * @param tarea the tarea to set
		 */
		public void setTarea(String tarea) {
			this.tarea = tarea;
		}
	    
}
